package com.study.agp.twowaybinding;

import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;

import com.study.agp.BR;

public class TWDBook extends BaseObservable {
    private String title;
    private String author;
    private String price;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    @Bindable
    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
        notifyPropertyChanged(BR.price);
    }
}
